package part1;

public class DVDPlayer {
    private static final DVDPlayer INSTANCE = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return INSTANCE;
    }

    public void on() {
        System.out.println("DVD打开了");
    }

    public void off() {
        System.out.println("DVD关闭了");
    }

    public void player() {
        System.out.println("DVD正在播放");
    }

    public void pause() {
        System.out.println("DVD暂停");
    }
}
